package com.bdqn.crm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.crm.mapper.StorageMapper;
import com.bdqn.crm.pojo.Storage;
import com.bdqn.crm.service.StorageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@Service
public class StorageServiceImpl extends ServiceImpl<StorageMapper, Storage>
        implements StorageService {

    @Resource
    private StorageMapper storageMapper;

    /**
     * 分页查询
     *
     * @param prodName
     * @param stkWarehouse
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @Override
    public List<Storage> selectPages(String prodName, String stkWarehouse, Integer pageIndex, Integer pageSize) {
        return storageMapper.selectPages(prodName, stkWarehouse , pageIndex ,pageSize);
    }

    /**
     * 表内记录数
     *
     * @param prodName
     * @param stkWarehouse
     * @return
     */
    @Override
    public Integer count(String prodName, String stkWarehouse) {
        return storageMapper.count(prodName,stkWarehouse);
    }
}




